/*
 * Copyright (c) 2017-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tencentcloudapi.ocr.v20181119.models;

import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class GetCardVerificationExternalResultResponse extends AbstractModel {

    /**
    * Indicates the status. valid values: 
PASSED
PROCESSING
WARNING
    */
    @SerializedName("Status")
    @Expose
    private String Status;

    /**
    * Indicates the anti-counterfeiting information.
-ScreenshotSuspected: The image is a screenshot.
-RetakeSuspected: The image is taken from another screen.
-PaperCopy: The image is a black and white, or color photocopy.
-FakeSuspected: The image of the card, or the information on the card has been edited or altered.
-OtherWarning: Document's authenticity is not verified for various reasons.
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("WarnInfo")
    @Expose
    private String [] WarnInfo;

    /**
    * Country Code.
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("Nationality")
    @Expose
    private String Nationality;

    /**
    * Recognition result of the text in the id photo.	
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("CardInfo")
    @Expose
    private GeneralCard CardInfo;

    /**
    * Specifies the token in the request parameters.
    */
    @SerializedName("CardVerificationToken")
    @Expose
    private String CardVerificationToken;

    /**
    * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
    */
    @SerializedName("RequestId")
    @Expose
    private String RequestId;

    /**
     * Get Indicates the status. valid values: 
PASSED
PROCESSING
WARNING 
     * @return Status Indicates the status. valid values: 
PASSED
PROCESSING
WARNING
     */
    public String getStatus() {
        return this.Status;
    }

    /**
     * Set Indicates the status. valid values: 
PASSED
PROCESSING
WARNING
     * @param Status Indicates the status. valid values: 
PASSED
PROCESSING
WARNING
     */
    public void setStatus(String Status) {
        this.Status = Status;
    }

    /**
     * Get Indicates the anti-counterfeiting information.
-ScreenshotSuspected: The image is a screenshot.
-RetakeSuspected: The image is taken from another screen.
-PaperCopy: The image is a black and white, or color photocopy.
-FakeSuspected: The image of the card, or the information on the card has been edited or altered.
-OtherWarning: Document's authenticity is not verified for various reasons.
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return WarnInfo Indicates the anti-counterfeiting information.
-ScreenshotSuspected: The image is a screenshot.
-RetakeSuspected: The image is taken from another screen.
-PaperCopy: The image is a black and white, or color photocopy.
-FakeSuspected: The image of the card, or the information on the card has been edited or altered.
-OtherWarning: Document's authenticity is not verified for various reasons.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public String [] getWarnInfo() {
        return this.WarnInfo;
    }

    /**
     * Set Indicates the anti-counterfeiting information.
-ScreenshotSuspected: The image is a screenshot.
-RetakeSuspected: The image is taken from another screen.
-PaperCopy: The image is a black and white, or color photocopy.
-FakeSuspected: The image of the card, or the information on the card has been edited or altered.
-OtherWarning: Document's authenticity is not verified for various reasons.
Note: This field may return null, indicating that no valid values can be obtained.
     * @param WarnInfo Indicates the anti-counterfeiting information.
-ScreenshotSuspected: The image is a screenshot.
-RetakeSuspected: The image is taken from another screen.
-PaperCopy: The image is a black and white, or color photocopy.
-FakeSuspected: The image of the card, or the information on the card has been edited or altered.
-OtherWarning: Document's authenticity is not verified for various reasons.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setWarnInfo(String [] WarnInfo) {
        this.WarnInfo = WarnInfo;
    }

    /**
     * Get Country Code.
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return Nationality Country Code.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public String getNationality() {
        return this.Nationality;
    }

    /**
     * Set Country Code.
Note: This field may return null, indicating that no valid values can be obtained.
     * @param Nationality Country Code.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setNationality(String Nationality) {
        this.Nationality = Nationality;
    }

    /**
     * Get Recognition result of the text in the id photo.	
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return CardInfo Recognition result of the text in the id photo.	
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public GeneralCard getCardInfo() {
        return this.CardInfo;
    }

    /**
     * Set Recognition result of the text in the id photo.	
Note: This field may return null, indicating that no valid values can be obtained.
     * @param CardInfo Recognition result of the text in the id photo.	
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setCardInfo(GeneralCard CardInfo) {
        this.CardInfo = CardInfo;
    }

    /**
     * Get Specifies the token in the request parameters. 
     * @return CardVerificationToken Specifies the token in the request parameters.
     */
    public String getCardVerificationToken() {
        return this.CardVerificationToken;
    }

    /**
     * Set Specifies the token in the request parameters.
     * @param CardVerificationToken Specifies the token in the request parameters.
     */
    public void setCardVerificationToken(String CardVerificationToken) {
        this.CardVerificationToken = CardVerificationToken;
    }

    /**
     * Get The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. 
     * @return RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public String getRequestId() {
        return this.RequestId;
    }

    /**
     * Set The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     * @param RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public void setRequestId(String RequestId) {
        this.RequestId = RequestId;
    }

    public GetCardVerificationExternalResultResponse() {
    }

    /**
     * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
     *       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
     */
    public GetCardVerificationExternalResultResponse(GetCardVerificationExternalResultResponse source) {
        if (source.Status != null) {
            this.Status = new String(source.Status);
        }
        if (source.WarnInfo != null) {
            this.WarnInfo = new String[source.WarnInfo.length];
            for (int i = 0; i < source.WarnInfo.length; i++) {
                this.WarnInfo[i] = new String(source.WarnInfo[i]);
            }
        }
        if (source.Nationality != null) {
            this.Nationality = new String(source.Nationality);
        }
        if (source.CardInfo != null) {
            this.CardInfo = new GeneralCard(source.CardInfo);
        }
        if (source.CardVerificationToken != null) {
            this.CardVerificationToken = new String(source.CardVerificationToken);
        }
        if (source.RequestId != null) {
            this.RequestId = new String(source.RequestId);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap<String, String> map, String prefix) {
        this.setParamSimple(map, prefix + "Status", this.Status);
        this.setParamArraySimple(map, prefix + "WarnInfo.", this.WarnInfo);
        this.setParamSimple(map, prefix + "Nationality", this.Nationality);
        this.setParamObj(map, prefix + "CardInfo.", this.CardInfo);
        this.setParamSimple(map, prefix + "CardVerificationToken", this.CardVerificationToken);
        this.setParamSimple(map, prefix + "RequestId", this.RequestId);

    }
}

